﻿
	//页面启动加栽
	function window_load()
	{
    	//cjolBoard(searchType);
	}
	//设置顶部标签的样式
	function cjolBoard(n) 
	{ 
		for(i=0;i<cjolTable.cells.length;i++) {
		    cjolTable.cells[i].className="cjol1"; 
		    linecolor.cells[i].className="cjol4";
			}
		    cjolTable.cells[n].className="cjol2"; 
		    linecolor.cells[n].className="cjol5";
		    
	    var curUrl = window.Frame1.location.href;
        var url = curUrl.split("=");
        showPendingMessage(true);
		switch(n){
			case 0:
				window.Frame1.location.href = "Base.aspx?StudentId=" + url[1];
				break;
			case 1:
				window.Frame1.location.href = "Family.aspx?StudentId=" + url[1];
				break;
			case 2:
				window.Frame1.location.href = "Resume.aspx?StudentId=" + url[1];
				break;
			case 3:
				window.Frame1.location.href = "Test.aspx?StudentId=" + url[1];
				break;
			case 4:
				window.Frame1.location.href = "ArchiveChange.aspx?StudentId=" + url[1];
				break;
			case 5:
			    window.Frame1.location.href = "Graduation.aspx?StudentId=" + url[1];
			    break;																
		}	     	 		 
	}
	
    //截取Frame1框架的当前地址
    function splitUrl(studentId)
    {
        document.all['PendingMessage'].style.display='';
        var curUrl = window.Frame1.location.href;
        var url = curUrl.split("=");
        window.Frame1.location.href = url[0] + '='+ studentId
    }
    
    function showPendingMessage(flag)
    {
        if(!flag) {parent.document.all['PendingMessage'].style.display='none';}
        if(flag) {parent.document.all['PendingMessage'].style.display='';}
    }
    
    
